<template>
  <div class="history">
<historyitem :itemdata="historydata.data?.items"></historyitem>
  </div>
</template>


<script setup>
import { storeToRefs } from "pinia";
import usehistory from "../../store/moduels/history";
import historyitem from "./historyitem.vue";
// import favoritem from "./favoritem.vue";
const historystore=usehistory()
const {historydata}=storeToRefs(historystore)
historystore.fetchhistory()
</script>


<style scoped>


</style>